<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>werewolf</title>
    <script src="https://hoppinzq.com/static/js/vendor/jquery-3.5.1.min.js"></script>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>狼人杀在线游戏</h1>
            <p>一款经典的多人推理桌面游戏</p>
            <div id="phase-indicator" class="phase-indicator">准备阶段</div>
        </div>
        
        <div class="game-stage">
            <div class="players-section">
                <h2>玩家列表</h2>
                <div id="players-container" class="players-container">
                    <!-- 玩家卡片将通过JavaScript动态生成 -->
                </div>
            </div>
            
            <div class="action-section">
                <h2>游戏操作</h2>
                <div class="buttons">
                    <button id="start-game" class="btn">开始游戏</button>
                    <button id="next-phase" class="btn btn-disabled">下一阶段</button>
                    <button id="vote-button" class="btn btn-disabled">开始投票</button>
                    <button id="game-state" class="btn">游戏状态</button>
                    <button id="is-end" class="btn">游戏是否结束</button>
                </div>
            </div>
        </div>
        
        <div class="chat-section">
            <h2>聊天区域</h2>
            <div id="chat-messages" class="chat-messages">
                <!-- 聊天消息将通过JavaScript动态生成 -->
            </div>
            <div class="chat-input">
                <input type="text" id="message-input" placeholder="输入消息...">
                <button id="send-message" class="btn btn-primary">发送</button>
            </div>
        </div>
    </div>
    
    <!-- 角色信息弹窗 -->
    <div id="overlay" class="overlay"></div>
    <div id="role-info" class="role-info">
        <div class="role-icon" id="role-icon"></div>
        <h2 id="role-title"></h2>
        <p id="role-description"></p>
        <button id="confirm-role" class="btn">确认</button>
    </div>
    
    <!-- 玩家信息弹窗 -->
    <div id="player-info-modal" class="player-info-modal">
        <h2 id="player-info-name"></h2>
        <div id="player-info-status" class="info-item"></div>
        <div id="player-info-ai" class="info-item"></div>
        <div id="player-info-role" class="info-item"></div>
        <div id="player-info-team" class="info-item"></div>
        <div id="player-info-potions" class="info-item"></div>
        <button id="close-player-info" class="btn">关闭</button>
    </div>
    
    <script src="ai.js"></script>
    <script src="chat.js"></script>
    <script src="script.js"></script>
</body>
</html>